gtk4.git
17 years agoBug 553586 – Add orientation API to GtkPaned
Michael Natterer [Fri, 7 Nov 2008 16:39:50 +0000 (16:39 +0000)]
Bug 553586 – Add orientation API to GtkPaned

2008-11-07  Michael Natterer  <mitch@gimp.org>

Bug 553586 – Add orientation API to GtkPaned

* gtk/gtkpaned.[ch]: implement the GtkOrientable interface
and swallow all code from GtkHPaned and GtkVPaned. Add
gtk_paned_new() which takes a GtkOrientation argument. Deprecate
gtk_paned_compute_position() for good (also for GTK_COMPILATION).

* gtk/gtkhpaned.[ch]
* gtk/gtkvpaned.[ch]: remove all code except the constructor and
call gtk_orientable_set_orientation() in init().

* gtk/gtk.symbols: add gtk_box_new().

svn path=/trunk/; revision=21772

17 years agoCheck for child->parent instead of GTK_WIDGET_TOPLEVEL.
Johan Dahlin [Fri, 7 Nov 2008 16:25:26 +0000 (16:25 +0000)]
Check for child->parent instead of GTK_WIDGET_TOPLEVEL.

2008-11-07  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkcontainer.c (gtk_container_buildable_add_child):
    Check for child->parent instead of GTK_WIDGET_TOPLEVEL.

svn path=/trunk/; revision=21771

17 years agoremove bogus newlines in the middle of function calls, fix broken
Michael Natterer [Thu, 6 Nov 2008 23:52:30 +0000 (23:52 +0000)]
remove bogus newlines in the middle of function calls, fix broken

2008-11-07  Michael Natterer  <mitch@imendio.com>

* gtk/gtkscrollbar.c: remove bogus newlines in the middle of
function calls, fix broken indentation and remove trailing
whitespace.

svn path=/trunk/; revision=21769

17 years agoFix broken ChangeLog formatting.
Michael Natterer [Thu, 6 Nov 2008 23:51:59 +0000 (23:51 +0000)]
Fix broken ChangeLog formatting.

svn path=/trunk/; revision=21768

17 years agoMade buildable and added support for adding children of type "submenu"
Tristan Van Berkom [Thu, 6 Nov 2008 17:34:30 +0000 (17:34 +0000)]
Made buildable and added support for adding children of type "submenu"

* gtk/gtkmenuitem.c: Made buildable and added support for adding children
of type "submenu"

* gtk/gtkwindow.c: Added support for custom tag "accel-groups" to add GtkAccelGroups
to the window.

* gtk/gtkcontainer.c: Added builder contextual warnings in buildable_add_child()

* gtk/tests/builder.c: Added tests for buildable menus (test that accelerators are
properly connected on stock items, test the menu hierarchy, test permission to
add alien/custom menuitem children).

* docs/reference/gtk/tmpl/gtkbuilder.sgml, docs/reference/gtk/tmpl/gtkwindow.sgml,
docs/reference/gtk/tmpl/gtkmenuitem.sgml: Updated docs for buildable submenus
and accel groups.

svn path=/trunk/; revision=21767

17 years agoadded new apis gtk_menu_item_[set/get]_label() and
Tristan Van Berkom [Thu, 6 Nov 2008 17:19:08 +0000 (17:19 +0000)]
added new apis gtk_menu_item_[set/get]_label() and

2008-11-06  Tristan Van Berkom <tvb@gnome.org>

* gtk/gtkmenuitem.[ch]: added new apis gtk_menu_item_[set/get]_label() and
gtk_menu_item_[set/get]_use_underline() with "label" and "use-underline"
properties, constructors cleaned up to use g_object_new().
GtkMenuItemClass take new vfuncs ->get/set_label().

* gtk/gtkcheckmenuitem.c: constructors cleaned up to use g_object_new().

* gtk/gtkimagemenuitem.[ch]: added new apis gtk_image_menu_item_[get/set]_use_stock()
and gtk_image_menu_item_set_accel_group() with "use-stock" and write-only
"accel-group" properties. constructors cleaned up to use g_object_new().

svn path=/trunk/; revision=21766

17 years agoFixed a crasher in GTK_BUILDER_WARN_INVALID_CHILD_TYPE()
Tristan Van Berkom [Thu, 6 Nov 2008 17:03:35 +0000 (17:03 +0000)]
Fixed a crasher in GTK_BUILDER_WARN_INVALID_CHILD_TYPE()

* gtk/gtkbuilder.h: Fixed a crasher in GTK_BUILDER_WARN_INVALID_CHILD_TYPE()

svn path=/trunk/; revision=21765

17 years agogtk_label_set_attributes() now applies attributes on top of any markup or
Tristan Van Berkom [Thu, 6 Nov 2008 16:36:16 +0000 (16:36 +0000)]
gtk_label_set_attributes() now applies attributes on top of any markup or

* gtk/gtklabel.c: gtk_label_set_attributes() now applies attributes
on top of any markup or mnemonic attributes (bug 558409).

* README: Updated and added release notes for 2.16

svn path=/trunk/; revision=21764

17 years agoBug 558586 – handling of keyboard under darwin (quartz)
Richard Hult [Thu, 6 Nov 2008 15:35:56 +0000 (15:35 +0000)]
Bug 558586 – handling of keyboard under darwin (quartz)

2008-11-06  Richard Hult  <richard@imendio.com>

Bug 558586 – handling of keyboard under darwin (quartz)

* gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Patch from
Arnaud Charlet to replace use of deprecated keyboard layout API
with the new TIS API available in 10.5. The old code is still used
when building for 10.4.

svn path=/trunk/; revision=21763

17 years agoRevert (at least for now) the alt/cmd switching since it breaks the
Richard Hult [Wed, 5 Nov 2008 19:12:48 +0000 (19:12 +0000)]
Revert (at least for now) the alt/cmd switching since it breaks the

2008-11-05  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkevents-quartz.c:
(get_keyboard_modifiers_from_ns_event), (create_key_event): Revert
(at least for now) the alt/cmd switching since it breaks the
"alt-gr" functionality of alt which makes it impossible to input
lots of characters.

svn path=/trunk/; revision=21761

17 years agoBug 559404 – gtk_editable_insert_text counts length in bytes
Christian Dywan [Wed, 5 Nov 2008 14:27:33 +0000 (14:27 +0000)]
Bug 559404 – gtk_editable_insert_text counts length in bytes

2008-11-05  Christian Dywan  <christian@imendio.com>

Bug 559404 – gtk_editable_insert_text counts length in bytes

* gtk/gtkeditable.c:
Document new_text_length as the number of bytes

svn path=/trunk/; revision=21760

17 years agoSet the fill color outside the loop.
Richard Hult [Wed, 5 Nov 2008 10:26:47 +0000 (10:26 +0000)]
Set the fill color outside the loop.

2008-11-05  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_impl_quartz_begin_paint_region): Set the fill color
outside the loop.

svn path=/trunk/; revision=21759

17 years agoFix build for win32 and quartz.
Richard Hult [Wed, 5 Nov 2008 10:24:30 +0000 (10:24 +0000)]
Fix build for win32 and quartz.

2008-11-05  Richard Hult  <richard@imendio.com>

* gtk/gtkstatusicon.c: (gtk_status_icon_set_has_tooltip),
(gtk_status_icon_get_tooltip_markup): Fix build for win32 and
quartz.

svn path=/trunk/; revision=21758

17 years agoUpdated Russian translation by Anton Shestakov.
Nickolay V. Shmyrev [Tue, 4 Nov 2008 23:36:22 +0000 (23:36 +0000)]
Updated Russian translation by Anton Shestakov.

2008-11-05  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

* ru.po: Updated Russian translation by Anton Shestakov.

svn path=/trunk/; revision=21757

17 years agoBug 557212 - Problem with which window gains focus and is visible
Tor Lillqvist [Mon, 3 Nov 2008 22:38:29 +0000 (22:38 +0000)]
Bug 557212 - Problem with which window gains focus and is visible

2008-11-04  Tor Lillqvist  <tml@novell.com>

Bug 557212 - Problem with which window gains focus and is visible

* gdk/win32/gdkevents-win32.c (ensure_stacking_on_activate_app):
Only do the restacking for the active window of the
application. Seems to fix the problem.

(gdk_event_translate): Only call ensure_stacking_on_activate_app()
when the application is being activated, not deactivated.

svn path=/trunk/; revision=21756

17 years agoAdd new statusicon tooltip api
Matthias Clasen [Mon, 3 Nov 2008 19:46:21 +0000 (19:46 +0000)]
Add new statusicon tooltip api

svn path=/trunk/; revision=21754

17 years agoBug 558001 – gtk_icon_view_enable_model_drag_[source|dest] problem
Christian Persch [Mon, 3 Nov 2008 18:40:56 +0000 (18:40 +0000)]
Bug 558001 – gtk_icon_view_enable_model_drag_[source|dest] problem

svn path=/trunk/; revision=21753

17 years agoFix the build
Matthias Clasen [Mon, 3 Nov 2008 04:45:18 +0000 (04:45 +0000)]
Fix the build

svn path=/trunk/; revision=21752

17 years agoMake it possible to overrule the gtk-menu-images setting.
Matthias Clasen [Sun, 2 Nov 2008 05:01:23 +0000 (05:01 +0000)]
Make it possible to overrule the gtk-menu-images setting.

2008-11-02  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkimagemenuitem.c: Make it possible to overrule the
        gtk-menu-images setting.

        * gtk/gtkaction.c (connect_proxy): Show the image before adding
it to the image menu item.

svn path=/trunk/; revision=21751

17 years agoPrint the random client type name, not the fixed one.
Tor Lillqvist [Sat, 1 Nov 2008 12:18:07 +0000 (12:18 +0000)]
Print the random client type name, not the fixed one.

svn path=/trunk/; revision=21750

17 years agoNew interactive test program to verify client message functionality.
Tor Lillqvist [Sat, 1 Nov 2008 11:57:42 +0000 (11:57 +0000)]
New interactive test program to verify client message functionality.

2008-11-01  Tor Lillqvist  <tml@novell.com>

* tests/testclientmessage.c: New interactive test program to
verify client message functionality.

* tests/Makefile.am: Add it.

svn path=/trunk/; revision=21749

17 years agoBug 558278 - Crash when calling a callback set by
Tor Lillqvist [Sat, 1 Nov 2008 11:55:16 +0000 (11:55 +0000)]
Bug 558278 - Crash when calling a callback set by

2008-11-01  Tor Lillqvist  <tml@novell.com>

Bug 558278 - Crash when calling a callback set by
gdk_add_client_message_filter()

* gdk/win32/gdkevents-win32.c (apply_event_filters): Rename from
apply_filters() so that it is clear that this function is for
GdkEventFilters only.

(print_event): Print more information for GDK_CLIENT_EVENT events.

(gdk_event_translate): When handling client filters, don't use
apply_event_filters(). Use similar code as in the X11 backend,
although not exactly, as the parameter list and return value
semantics of gdk_event_translate() is different.

svn path=/trunk/; revision=21748

17 years agoAdd support for button press/release and scroll events. Patch by Ed Catmur
Matthias Clasen [Sat, 1 Nov 2008 05:33:26 +0000 (05:33 +0000)]
Add support for button press/release and scroll events. Patch by Ed Catmur

* gtk/gtkstatusicon.[hc]: Add support for button press/release and
scroll events. Patch by Ed Catmur

svn path=/trunk/; revision=21746

17 years ago Bug 322934 – Replace menu's proxy icons with empty space hiding icons
Matthias Clasen [Sat, 1 Nov 2008 04:32:40 +0000 (04:32 +0000)]
    Bug 322934 – Replace menu's proxy icons with empty space hiding icons

        * gtk/gtkmenu.c (gtk_menu_size_request): Use consistent padding
        regardless of imagees or checks being in the menu. Also add
        padding on the right edge.
        Proposal by Luca Ferretti, patch by Jon McCann

svn path=/trunk/; revision=21745

17 years agoBug 412134 – Add API to query style properties from the style
Matthias Clasen [Sat, 1 Nov 2008 04:15:14 +0000 (04:15 +0000)]
Bug 412134 – Add API to query style properties from the style

2008-11-01  Matthias Clasen  <mclasen@redhat.com>

        Bug 412134 – Add API to query style properties from the style

        * gtk/gtk.symbols:
        * gtk/gtkstyle.[hc]: Add getters for style properties to
        avoid the need for ugly workarounds with dummy widget instances.
        Patch by Mariano Suárez-Alvarez

svn path=/trunk/; revision=21744

17 years agoRemove debug spew
Matthias Clasen [Sat, 1 Nov 2008 02:11:08 +0000 (02:11 +0000)]
Remove debug spew

svn path=/trunk/; revision=21743

17 years agoBug 558667 – gtk_font_selection_dialog_get_apply_button - deprecate?
Christian Dywan [Fri, 31 Oct 2008 22:16:41 +0000 (22:16 +0000)]
Bug 558667 – gtk_font_selection_dialog_get_apply_button - deprecate?

* gtk/gtk.symbols:
* gtk/gtkfontsel.c:
* gtk/gtkfontsel.h:
Deprecate gtk_font_selection_dialog_get_apply_button

svn path=/trunk/; revision=21742

17 years agoBug 558323 – glitches when popping up combos in treeviews
Matthias Clasen [Fri, 31 Oct 2008 18:20:07 +0000 (18:20 +0000)]
Bug 558323 – glitches when popping up combos in treeviews

gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_set_property):
Don't set the model property on the combo box, since that leads
to loops.

svn path=/trunk/; revision=21740

17 years agoBug 347230 – testicontheme shortcomings
Christian Dywan [Fri, 31 Oct 2008 08:56:42 +0000 (08:56 +0000)]
Bug 347230 – testicontheme shortcomings

* tests/testicontheme.c (main):
Use theme for "display" and quit on window closing

svn path=/trunk/; revision=21739

17 years agoBug 558522 – scroll arrow painted insensitive even though there are
Matthias Clasen [Fri, 31 Oct 2008 03:46:00 +0000 (03:46 +0000)]
Bug 558522 – scroll arrow painted insensitive even though there are

2008-10-30  Matthias Clasen  <mclasen@redhat.com>

        Bug 558522 – scroll arrow painted insensitive even though there
        are pages beyond the edge

        gtk/gtknotebook.c (gtk_notebook_real_insert_page): Redraw
        arrows. Pointed out by Christian Persch

svn path=/trunk/; revision=21738

17 years agoRemove fuzzy marker from header and use charset=UTF-8 to avoid crashing
Tor Lillqvist [Thu, 30 Oct 2008 19:24:38 +0000 (19:24 +0000)]
Remove fuzzy marker from header and use charset=UTF-8 to avoid crashing

2008-10-30  Tor Lillqvist  <tml@novell.com>

* ast.po: Remove fuzzy marker from header and use charset=UTF-8 to
avoid crashing with some versions of msgfmt.

svn path=/trunk/; revision=21737

17 years agoFix email.
Michael Natterer [Thu, 30 Oct 2008 18:39:06 +0000 (18:39 +0000)]
Fix email.

svn path=/trunk/; revision=21736

17 years agogtk/gtkcellrenderertext.h gtk/gtkentry.[ch] gtk/gtkimcontext.h
Michael Natterer [Thu, 30 Oct 2008 18:38:06 +0000 (18:38 +0000)]
gtk/gtkcellrenderertext.h gtk/gtkentry.[ch] gtk/gtkimcontext.h

2008-10-30  Michael Natterer  <mitch@gimp.org>

* gtk/gtkcellrenderertext.h
* gtk/gtkentry.[ch]
* gtk/gtkimcontext.h
* gtk/gtklabel.c
* gtk/gtkstyle.h: <pango/pango.h> is pulled in by <gdk/gdk.h>,
remove its inclusion here.

svn path=/trunk/; revision=21735

17 years agono need to include <gtk/gtkenums.h> in headers which somehow include
Michael Natterer [Thu, 30 Oct 2008 16:34:16 +0000 (16:34 +0000)]
no need to include <gtk/gtkenums.h> in headers which somehow include

2008-10-30  Michael Natterer  <mitch@imendio.com>

* gtk/*.h: no need to include <gtk/gtkenums.h> in headers which
somehow include gtkobject.h or another header which includes it.

svn path=/trunk/; revision=21734

17 years agoBug 339714 - Set printer dpi on cairo ps/pdf surfaces when printing
Marek Kasik [Thu, 30 Oct 2008 16:24:27 +0000 (16:24 +0000)]
Bug 339714 - Set printer dpi on cairo ps/pdf surfaces when printing

2008-10-30  Marek Kasik  <mkasik@redhat.com>

Bug 339714 - Set printer dpi on cairo ps/pdf surfaces when printing

* gtk/gtk.symbols
* gtk/gtkprintsettings.c
* gtk/gtkprintsettings.h
* docs/reference/gtk/gtk-sections.txt
* modules/printbackends/file/gtkprintbackendfile.c
* modules/printbackends/test/gtkprintbackendtest.c
* modules/printbackends/cups/gtkprintbackendcups.c
* modules/printbackends/lpr/gtkprintbackendlpr.c:
Added lpi (lines per inch) setting to GtkPrintSettings and support
for anamorphic dpi. Surface fallback resolution is set to 2*lpi.

svn path=/trunk/; revision=21733

17 years agono need to include <gdk/gdk.h> in any widget header, it's included via
Michael Natterer [Thu, 30 Oct 2008 15:58:06 +0000 (15:58 +0000)]
no need to include <gdk/gdk.h> in any widget header, it's included via

2008-10-30  Michael Natterer  <mitch@imendio.com>

* gtk/*.h: no need to include <gdk/gdk.h> in any widget header,
it's included via gtkwidget.h anyway.

svn path=/trunk/; revision=21732

17 years agoremoved redundant conditional.
Sven Neumann [Thu, 30 Oct 2008 15:04:38 +0000 (15:04 +0000)]
removed redundant conditional.

2008-10-30  Sven Neumann  <sven@gimp.org>

* gtk/gtkwidget.c (gtk_widget_get_property): removed redundant
conditional.

svn path=/trunk/; revision=21731

17 years agoBug 557316 – GtkLinkButton should consider user-defined tooltip
Christian Dywan [Thu, 30 Oct 2008 08:49:18 +0000 (08:49 +0000)]
Bug 557316 – GtkLinkButton should consider user-defined tooltip

* gtk/gtklinkbutton.c (gtk_link_button_query_tooltip_cb):
Only override the tooltip if not previously set

svn path=/trunk/; revision=21728

17 years agoThe GTK+ Drawing Model: new chapter for the documentation
Federico Mena Quintero [Wed, 29 Oct 2008 18:59:40 +0000 (18:59 +0000)]
The GTK+ Drawing Model: new chapter for the documentation

Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=21727

17 years agoBug 557762 – Misleading error message in GDK DirectFB
Christian Dywan [Wed, 29 Oct 2008 15:25:15 +0000 (15:25 +0000)]
Bug 557762 – Misleading error message in GDK DirectFB

* gdk/directfb/gdkdisplay-directfb.c (gdk_display_open):
Correctly say GetInputDevice instead of GetDisplayLayer

svn path=/trunk/; revision=21726

17 years agoBug 558397 – gtk_widget_error_bell undefined without a screen
Christian Dywan [Wed, 29 Oct 2008 15:08:49 +0000 (15:08 +0000)]
Bug 558397 – gtk_widget_error_bell undefined without a screen

* gtk/gtkwidget.c (gtk_widget_error_bell): Test the settings
instance and return silently if unset

svn path=/trunk/; revision=21725

17 years agofix small typo.
Michael Natterer [Tue, 28 Oct 2008 22:55:23 +0000 (22:55 +0000)]
fix small typo.

2008-10-28  Michael Natterer  <mitch@imendio.com>

* gdk/keyname-table.h: fix small typo.

svn path=/trunk/; revision=21724

17 years agoBug 557894 – Wrong return value for gdk_pointer_grab_info_libgtk_only()
Richard Hult [Mon, 27 Oct 2008 14:54:57 +0000 (14:54 +0000)]
Bug 557894 – Wrong return value for gdk_pointer_grab_info_libgtk_only()

2008-10-27  Richard Hult  <richard@imendio.com>

Bug 557894 – Wrong return value for
gdk_pointer_grab_info_libgtk_only()

* gdk/quartz/gdkevents-quartz.c:
(gdk_pointer_grab_info_libgtk_only): Return TRUE when there is a
pointer grab. Patch by Owen Taylor.

svn path=/trunk/; revision=21722

17 years agoFix up short descriptions
Matthias Clasen [Mon, 27 Oct 2008 04:27:03 +0000 (04:27 +0000)]
Fix up short descriptions

svn path=/trunk/; revision=21721

17 years agoAdd GtkOrientable
Matthias Clasen [Mon, 27 Oct 2008 04:07:42 +0000 (04:07 +0000)]
Add GtkOrientable

svn path=/trunk/; revision=21720

17 years agoadd a short desc
Matthias Clasen [Mon, 27 Oct 2008 04:03:51 +0000 (04:03 +0000)]
add a short desc

svn path=/trunk/; revision=21719

17 years agoAdd short desc
Matthias Clasen [Mon, 27 Oct 2008 04:02:57 +0000 (04:02 +0000)]
Add short desc

svn path=/trunk/; revision=21718

17 years agoMore conversion to C_()
Matthias Clasen [Mon, 27 Oct 2008 03:07:16 +0000 (03:07 +0000)]
More conversion to C_()

svn path=/trunk/; revision=21717

17 years agoUse C_() instead of Q_(). String change!
Matthias Clasen [Mon, 27 Oct 2008 01:42:28 +0000 (01:42 +0000)]
Use C_() instead of Q_(). String change!

2008-10-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkaccellabel.c:
        * gtk/gtkcalendar.c:
        * gtk/gtkcellrendereraccel.c:
        * gtk/gtkcellrendererprogress.c:
        * gtk/gtkimmulticontext.c:
        * gtk/gtkrecentchoosermenu.c:
        * gtk/gtkvolumebutton.c: Use C_() instead of Q_(). String change!

svn path=/trunk/; revision=21716

17 years ago Bug 557065 – gtkcellrendererpixbuf spams console over and over with
Christian Persch [Sun, 26 Oct 2008 20:37:17 +0000 (20:37 +0000)]
Bug 557065 – gtkcellrendererpixbuf spams console over and over with
'could not load image' warnings

* gtk/gtkcellrendererpixbuf.c:
(gtk_cell_renderer_pixbuf_create_themed_pixbuf): Remove noisy
g_warning.

svn path=/trunk/; revision=21715

17 years agoBug 530454 – Clarify page_nr when printing
Philip Withnall [Sun, 26 Oct 2008 12:11:11 +0000 (12:11 +0000)]
Bug 530454 – Clarify page_nr when printing

2008-10-26  Philip Withnall  <philip@tecnocode.co.uk>

Bug 530454 – Clarify page_nr when printing

* gtk/gtkprintoperation.c (gtk_print_operation_class_init):
Point out
that page_nr is 0-based in the documentation.

svn path=/trunk/; revision=21714

17 years agoBug 557315 – stale clipboard target cache
Matthias Clasen [Sat, 25 Oct 2008 23:12:03 +0000 (23:12 +0000)]
Bug 557315 – stale clipboard target cache

2008-10-25  Matthias Clasen  <mclasen@redhat.com>

        Bug 557315 – stale clipboard target cache

        * gtk/gtkclipboard.c (gtk_clipboard_set_contents): Remove cached
        targets. Pointed out by Evan Stade

svn path=/trunk/; revision=21713

17 years agoAdded a note about GtkWidget:has-tooltip in the docs for
Tristan Van Berkom [Fri, 24 Oct 2008 18:25:43 +0000 (18:25 +0000)]
Added a note about GtkWidget:has-tooltip in the docs for

* gtk/gtkwidget.c: Added a note about GtkWidget:has-tooltip in
the docs for GtkWidget::query-tooltip.

svn path=/trunk/; revision=21712

17 years agofix a typo
Mark Krapivner [Fri, 24 Oct 2008 12:34:09 +0000 (12:34 +0000)]
fix a typo

svn path=/trunk/; revision=21711

17 years agoAdd a missing type
Matthias Clasen [Fri, 24 Oct 2008 04:25:14 +0000 (04:25 +0000)]
Add a missing type

svn path=/trunk/; revision=21710

17 years agoFix a property definition
Matthias Clasen [Fri, 24 Oct 2008 04:23:42 +0000 (04:23 +0000)]
Fix a property definition

svn path=/trunk/; revision=21709

17 years agoBug 556954 – gtk+/gtk/gtkrecentchooserdefault.c: mismatching allocation
Matthias Clasen [Fri, 24 Oct 2008 04:21:25 +0000 (04:21 +0000)]
Bug 556954 – gtk+/gtk/gtkrecentchooserdefault.c: mismatching allocation

2008-10-24  Matthias Clasen  <mclasen@redhat.com>

        Bug 556954 – gtk+/gtk/gtkrecentchooserdefault.c: mismatching
        allocation and deallocation

        * gtk/gtkrecentchooserdefault.c (remove_selected_from_list): Don't
        free a strdup'ed string by g_free. Pointed out by Daniel Marjamäki

svn path=/trunk/; revision=21708

17 years agoBug 556835 – gtkentry.c: variable is declared at middle of block
Matthias Clasen [Fri, 24 Oct 2008 04:18:48 +0000 (04:18 +0000)]
Bug 556835 – gtkentry.c: variable is declared at middle of block

2008-10-24  Matthias Clasen  <mclasen@redhat.com>

        Bug 556835 – gtkentry.c: variable is declared at middle of block

        * gtk/gtkentry.c (gtk_entry_copy_clipboard): Fix a C99ism pointed
        out by Kazuki Iwamoto

svn path=/trunk/; revision=21707

17 years agoBug 557524 – "va_end(args);" should be added into
Matthias Clasen [Fri, 24 Oct 2008 04:16:07 +0000 (04:16 +0000)]
Bug 557524 – "va_end(args);" should be added into

2008-10-24  Matthias Clasen  <mclasen@redhat.com>

        Bug 557524 – "va_end(args);" should be added into
        gtk_text_buffer_insert_with_tags_by_name( )

        * gtk/gtktextbuffer.c (gtk_text_buffer_insert_with_tags_by_name):
        Don't forget to call va_end. Pointed out by Boram Park

svn path=/trunk/; revision=21706

17 years agoAdded Asturian translation on behalf of Mikel González
Gil Forcada Codinachs [Thu, 23 Oct 2008 13:49:12 +0000 (13:49 +0000)]
Added Asturian translation on behalf of Mikel González

svn path=/trunk/; revision=21704

17 years agoBug 528320 - Incorrect icons displayed for files with custom mimetype
Alexander Larsson [Thu, 23 Oct 2008 09:59:46 +0000 (09:59 +0000)]
Bug 528320 - Incorrect icons displayed for files with custom mimetype

2008-10-23  Alexander Larsson  <alexl@redhat.com>

Bug 528320 - Incorrect icons displayed for files with custom mimetype icons

        * gtk/gtkfilesystem.c:
        (_gtk_file_info_render_icon):
Fall back on default file icon if there was no icon or it
was not found in the theme. This goes with the corresponding
change in glib to not add the fallback icon, but is useful
in other cases too.

svn path=/trunk/; revision=21702

17 years agoBug 555920 – gtkentry.c passes wrong enum to
Behdad Esfahbod [Wed, 22 Oct 2008 21:02:23 +0000 (21:02 +0000)]
Bug 555920 – gtkentry.c passes wrong enum to

2008-10-22  Behdad Esfahbod  <behdad@gnome.org>

        Bug 555920 – gtkentry.c passes wrong enum to
        pango_layout_set_alignment()

        * gtk/gtkentry.c (gtk_entry_create_layout): Don't set layout
        adjustment.

svn path=/trunk/; revision=21700

17 years agoOnly emit size-changed if the screen size actually changed.
Matthias Clasen [Wed, 22 Oct 2008 14:55:56 +0000 (14:55 +0000)]
Only emit size-changed if the screen size actually changed.

2008-10-22  Matthias Clasen  <mclasen@redhat.com>

        * gdk/x11/gdkscreen-x11.c: Only emit size-changed if the screen
        size actually changed.

svn path=/trunk/; revision=21698

17 years agogdk/gdkdraw.c gdk/gdkimage.c gdk/gdkscreen.c replace assertions for obj !=
Michael Natterer [Tue, 21 Oct 2008 21:42:39 +0000 (21:42 +0000)]
gdk/gdkdraw.c gdk/gdkimage.c gdk/gdkscreen.c replace assertions for obj !=

2008-10-21  Michael Natterer  <mitch@imendio.com>

* gdk/gdkdraw.c
* gdk/gdkimage.c
* gdk/gdkscreen.c
* gdk/gdkwindow.c: replace assertions for obj != NULL by
GDK_IS_OBJ(), remove redundant != NULL checks when there is
already a type check, add some g_return_if_fail() that were
missing entirely, fix some broken indentation and spacing.

svn path=/trunk/; revision=21695

17 years agoBug 557266 - Window Management Problem
Tor Lillqvist [Tue, 21 Oct 2008 20:31:05 +0000 (20:31 +0000)]
Bug 557266 - Window Management Problem

2008-10-21  Tor Lillqvist  <tml@novell.com>

Bug 557266 - Window Management Problem

Also reported in mail to gtk-list, and of course it has been well
known in general that window state management is messy and buggy
in various ways in gdk/win32.

* gdk/win32/gdkwindow-win32.c (show_window_internal): Correct
handling of GDK_WINDOW_STATE_ABOVE windows. It doesn't work to set
the WS_EX_TOPMOST extended style bit using SetWindowLong(). We
must call SetWindowPos() on the window using HWND_TOPMOST
instead. The description for WS_EX_TOPMOST in the documentation
for CreateWindowEx() even implies that if you read it carefully.

svn path=/trunk/; revision=21694

17 years agoreorder functions to be in standard order, add prototypes and namespace to
Michael Natterer [Tue, 21 Oct 2008 20:20:50 +0000 (20:20 +0000)]
reorder functions to be in standard order, add prototypes and namespace to

2008-10-21  Michael Natterer  <mitch@imendio.com>

* gdk/gdkapplaunchcontext.c: reorder functions to be in standard
order, add prototypes and namespace to static functions, add
g_return_if_fail()s which were missing all over the place.

svn path=/trunk/; revision=21692

17 years agoBug 557059 – crash when compositing emblems with icon
Christian Persch [Mon, 20 Oct 2008 16:55:00 +0000 (16:55 +0000)]
Bug 557059 – crash when compositing emblems with icon

2008-10-20  Christian Persch  <chpe@gnome.org>

Bug 557059 – crash when compositing emblems with icon

* gtk/gtkicontheme.c: (apply_emblems): Copy the pixbuf before using it
with gtk_pixbuf_composite, in case its pixdata is read-only (mmaped
from icon cache or builtins).

svn path=/trunk/; revision=21690

17 years agogtk_icon_view_set_tooltip_row(), gtk_icon_view_set_tooltip_item():
Murray Cumming [Mon, 20 Oct 2008 12:11:05 +0000 (12:11 +0000)]
gtk_icon_view_set_tooltip_row(), gtk_icon_view_set_tooltip_item():

2008-10-20  Murray Cumming  <murrayc@murrayc.com>

* gtk/gtkiconview.c: gtk_icon_view_set_tooltip_row(),
gtk_icon_view_set_tooltip_item():
* gtk/gtktreeview.c: gtk_icon_view_set_tooltip_row(),
gtk_icon_view_set_tooltip_cell():
Documentation: Mention the simple set_tooltip_column()
alternative.

svn path=/trunk/; revision=21689

17 years agoUpdated Catalan translation by David Planella
Gil Forcada Codinachs [Sun, 19 Oct 2008 11:54:00 +0000 (11:54 +0000)]
Updated Catalan translation by David Planella

svn path=/trunk/; revision=21686

17 years agoUpdated Thai translation.
Theppitak Karoonboonyanan [Sun, 19 Oct 2008 04:01:30 +0000 (04:01 +0000)]
Updated Thai translation.

2008-10-19  Theppitak Karoonboonyanan  <thep@linux.thai.net>

* th.po: Updated Thai translation.

svn path=/trunk/; revision=21682

17 years agoUpdated Galician Translation.
Ignacio Casal Quinteiro [Sat, 18 Oct 2008 14:40:28 +0000 (14:40 +0000)]
Updated Galician Translation.

svn path=/trunk/; revision=21680

17 years agoOn WM_WINDOWPOSCHANGING, don't dereference windowpos in the debugging
Tor Lillqvist [Fri, 17 Oct 2008 22:56:33 +0000 (22:56 +0000)]
On WM_WINDOWPOSCHANGING, don't dereference windowpos in the debugging

2008-10-18  Tor Lillqvist  <tml@novell.com>

* gdk/win32/gdkevents-win32.c (gdk_event_translate): On
WM_WINDOWPOSCHANGING, don't dereference windowpos in the debugging
output without setting it first.

2008-10-18  Tor Lillqvist  <tml@novell.com>

Bug 556578 - GIMP windows stay on top of other windows

* gdk/win32/gdkevents-win32.c (ensure_stacking_on_unminimize)
(ensure_stacking_on_window_pos_changing)
(ensure_stacking_on_activate_app): Ignore unmapped windows in the
loops where we look for the lowest "transient-type" window.

(gdk_event_translate): Don't call
ensure_stacking_on_window_pos_changing() or
ensure_stacking_on_activate_app() for unmapped windows.

svn path=/trunk/; revision=21676

17 years agoUpdated Catalan translation
Gil Forcada Codinachs [Fri, 17 Oct 2008 18:39:44 +0000 (18:39 +0000)]
Updated Catalan translation

svn path=/trunk/; revision=21672

17 years agoUpdated Georgian Translation
Vladimer Sichinava [Fri, 17 Oct 2008 16:07:25 +0000 (16:07 +0000)]
Updated Georgian Translation

svn path=/trunk/; revision=21670

17 years agoUpdated Slovak translation by Pavol Šimo.
Marcel Telka [Thu, 16 Oct 2008 23:00:00 +0000 (23:00 +0000)]
Updated Slovak translation by Pavol Šimo.

2008-10-16  Marcel Telka  <marcel@telka.sk>

* sk.po: Updated Slovak translation by Pavol Šimo.

svn path=/trunk/; revision=21665

17 years agoUpdated Slovak translation by Pavol Šimo.
Marcel Telka [Thu, 16 Oct 2008 22:58:49 +0000 (22:58 +0000)]
Updated Slovak translation by Pavol Šimo.

2008-10-16  Marcel Telka  <marcel@telka.sk>

* sk.po: Updated Slovak translation by Pavol Šimo.

svn path=/trunk/; revision=21664

17 years agoBug 556527 - The current page property is not passed to GtkPrintUnixDialog
Marek Kasik [Thu, 16 Oct 2008 11:20:33 +0000 (11:20 +0000)]
Bug 556527 - The current page property is not passed to GtkPrintUnixDialog

2008-10-16  Marek Kasik  <mkasik@redhat.com>

Bug 556527 - The current page property is not passed to
GtkPrintUnixDialog

* gtk/gtkprintoperation-unix.c: pass current-page property
to GtkPrintUnixDialog

svn path=/trunk/; revision=21660

17 years agofix typo in the type name so the macro becomes usable.
Michael Natterer [Wed, 15 Oct 2008 15:50:10 +0000 (15:50 +0000)]
fix typo in the type name so the macro becomes usable.

2008-10-15  Michael Natterer  <mitch@imendio.com>

* gdk/gdkapplaunchcontext.h (GDK_IS_APP_LAUNCH_CONTEXT): fix typo
in the type name so the macro becomes usable.

svn path=/trunk/; revision=21658

17 years agoUpdated Brazilian Portuguese translation.
Og B. Maciel [Tue, 14 Oct 2008 15:50:00 +0000 (15:50 +0000)]
Updated Brazilian Portuguese translation.

svn path=/trunk/; revision=21655

17 years ago556150 – gtk 'object' property test fixing
Christian Dywan [Tue, 14 Oct 2008 13:23:44 +0000 (13:23 +0000)]
556150 – gtk 'object' property test fixing

* gtk/tests/object.c (list_ignore_properties):
Remove some recently fixed properties from the exception list

svn path=/trunk/; revision=21653

17 years agoBug 555779 – GtkCellRendererPixbuf crashed on failed GIcon lookup
Matthias Clasen [Tue, 14 Oct 2008 03:47:18 +0000 (03:47 +0000)]
Bug 555779 – GtkCellRendererPixbuf crashed on failed GIcon lookup

2008-10-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 555779 – GtkCellRendererPixbuf crashed on failed GIcon lookup

        * gtk/gtkcellrendererpixbuf
        (gtk_cell_renderer_pixbuf_create_themed_pixbuf): Don't crash
        if a GIcon is not present in the current theme. Patch by
        Alex Larsson.

svn path=/trunk/; revision=21650

17 years agoBug 552318 – menubar mnemonics consumed even when
Matthias Clasen [Tue, 14 Oct 2008 02:00:11 +0000 (02:00 +0000)]
Bug 552318 – menubar mnemonics consumed even when

2008-10-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 552318 – menubar mnemonics consumed even when
        gtk-enable-mnemonics=false

        * gtk/gtkwindow.c (gtk_window_activate_key): Don't let mnemonic
        entries block accelerator activation when gtk-enable-mnemonics is
        FALSE. Problem reported by Andreas Moog.

svn path=/trunk/; revision=21648

17 years agoBug 555953 – libferret missing link against libgtk-x11
Matthias Clasen [Mon, 13 Oct 2008 16:00:24 +0000 (16:00 +0000)]
Bug 555953 – libferret missing link against libgtk-x11

2008-10-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 555953 – libferret missing link against libgtk-x11

        * modules/other/gail/test/Makefile.am: Link libferret against gtk.

svn path=/trunk/; revision=21646

17 years agoFix option parsing so that -a and --action work correctly.
Cody Russell [Mon, 13 Oct 2008 15:15:23 +0000 (15:15 +0000)]
Fix option parsing so that -a and --action work correctly.

2008-10-13  Cody Russell <cody@jhu.edu>

        * test/testfilechooser.c: Fix option parsing so that -a and
        --action work correctly.

svn path=/trunk/; revision=21645

17 years agoBug 555791 – Natuilus Crashes when opening USB MP3 Player Contents
Matthias Clasen [Mon, 13 Oct 2008 14:18:40 +0000 (14:18 +0000)]
Bug 555791 – Natuilus Crashes when opening USB MP3 Player Contents

2008-10-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 555791 – Natuilus Crashes when opening USB MP3 Player Contents

        * io-tga.c (gdk_pixbuf__tga_stop_load): Don't segfault on
        short files.
        Problem reported by Pedro Villavicencio

svn path=/trunk/; revision=21643

17 years agoBug 555386 – format not a string literal and no format arguments
Christian Persch [Mon, 13 Oct 2008 12:54:45 +0000 (12:54 +0000)]
Bug 555386 – format not a string literal and no format arguments

svn path=/trunk/; revision=21642

17 years agoBug 555724 – gtkcellrendereraccel not initialised correctly
Christian Persch [Mon, 13 Oct 2008 12:54:39 +0000 (12:54 +0000)]
Bug 555724 – gtkcellrendereraccel not initialised correctly

svn path=/trunk/; revision=21641

17 years agoFixed wrong translations (Bug #556017).
Takeshi AIHANA [Mon, 13 Oct 2008 00:38:24 +0000 (00:38 +0000)]
Fixed wrong translations (Bug #556017).

2008-10-13  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Fixed wrong translations (Bug #556017).

svn path=/trunk/; revision=21640

17 years agoUpdated Spanish translation
Jorge Gonzalez Gonzalez [Sun, 12 Oct 2008 20:30:17 +0000 (20:30 +0000)]
Updated Spanish translation

svn path=/trunk/; revision=21638

17 years agoUpdated Spanish translation
Jorge Gonzalez Gonzalez [Sun, 12 Oct 2008 20:30:01 +0000 (20:30 +0000)]
Updated Spanish translation

svn path=/trunk/; revision=21637

17 years agoFixed terminology in Brazilian Portuguese translation by Vladimir Melo.
Leonardo Ferreira Fontenelle [Sun, 12 Oct 2008 17:19:57 +0000 (17:19 +0000)]
Fixed terminology in Brazilian Portuguese translation by Vladimir Melo.

2008-10-12  Leonardo Ferreira Fontenelle  <leonardof@gnome.org>

* pt_BR.po: Fixed terminology in Brazilian Portuguese translation by
Vladimir Melo.

svn path=/trunk/; revision=21636

17 years agoClosed #555625 – Updated gtk_compose_seqs_compact table (gtkimcontextsimpleseqs.h)
Simos Xenitellis [Sun, 12 Oct 2008 16:11:48 +0000 (16:11 +0000)]
Closed #555625 – Updated gtk_compose_seqs_compact table (gtkimcontextsimpleseqs.h)

svn path=/trunk/; revision=21634

17 years agoRevert the GtkSettings::gtk-toolbar-icon-size part of the previous change,
Matthias Clasen [Sun, 12 Oct 2008 15:27:57 +0000 (15:27 +0000)]
Revert the GtkSettings::gtk-toolbar-icon-size part of the previous change,

2008-10-11  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktoolbar.c: Revert the GtkSettings::gtk-toolbar-icon-size
        part of the previous change, since it doesn't work correctly without
        extra complication, and using custom icon sizes doesn't make too
        much sense in a desktop-wide setting.

svn path=/trunk/; revision=21633

17 years agoBug 555186 – Setting gtk-toolbar-icon-size with custom icon_size
Matthias Clasen [Sun, 12 Oct 2008 03:17:16 +0000 (03:17 +0000)]
Bug 555186 – Setting gtk-toolbar-icon-size with custom icon_size

2008-10-11  Matthias Clasen  <mclasen@redhat.com>

        Bug 555186 – Setting gtk-toolbar-icon-size with custom icon_size

        * gtk/gtktoolbar.c: Turn GtkToolbar::icon-size and
        GtkSettings::gtk-toolbar-icon-size into int properties, to
        allow the use of app-registered icon sizes.

svn path=/trunk/; revision=21632

17 years agoBug 555676 – gtk_widget_real_grab_focus assumes toplevel == window
Christian Dywan [Sat, 11 Oct 2008 03:37:47 +0000 (03:37 +0000)]
Bug 555676 – gtk_widget_real_grab_focus assumes toplevel == window

* gtk/gtkwidget.c (gtk_widget_real_grab_focus):
Actually test for GTK_IS_WINDOW *and* GTK_WIDGET_TOPLEVEL

svn path=/trunk/; revision=21631

17 years agoBug 551355 – [PATCH] Make glib build with libtool 2.2
Behdad Esfahbod [Sat, 11 Oct 2008 00:05:31 +0000 (00:05 +0000)]
Bug 551355 – [PATCH] Make glib build with libtool 2.2

2008-10-10  Behdad Esfahbod  <behdad@gnome.org>

        Bug 551355 – [PATCH] Make glib build with libtool 2.2

        * autogen.sh: Accept libtool 2.2.   We are moving towards having
        it working.

svn path=/trunk/; revision=21630

17 years agoAdd empty stub to fix linking.
Richard Hult [Fri, 10 Oct 2008 13:38:05 +0000 (13:38 +0000)]
Add empty stub to fix linking.

2008-10-10  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkkeys-quartz.c: (gdk_keymap_get_caps_lock_state)
Add empty stub to fix linking.

svn path=/trunk/; revision=21629

17 years agoFixed Bug 555000, check_algorithmically() applies to deadkey keysyms only.
Simos Xenitellis [Fri, 10 Oct 2008 08:29:12 +0000 (08:29 +0000)]
Fixed Bug 555000, check_algorithmically() applies to deadkey keysyms only.

svn path=/trunk/; revision=21627

17 years agoFixed Bug 555000, check_algorithmically() applies to deadkey keysyms only.
Simos Xenitellis [Fri, 10 Oct 2008 08:28:12 +0000 (08:28 +0000)]
Fixed Bug 555000, check_algorithmically() applies to deadkey keysyms only.

svn path=/trunk/; revision=21626

17 years agoFixed Bug 555000, check_algorithmically() applies to deadkey keysyms only.
Simos Xenitellis [Fri, 10 Oct 2008 08:21:54 +0000 (08:21 +0000)]
Fixed Bug 555000, check_algorithmically() applies to deadkey keysyms only.

svn path=/trunk/; revision=21623